@include('admin.layout.css')
@include('admin.layout.js')




<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">

    <div style="display: flex;align-items: center;flex-wrap: wrap;width: 80%;margin: 0 auto" class="layui-form-item">

        @foreach($json_data as $key=>$value)
            <div style="width: 48%">
                @if(is_array($value))
                    <span>{{$key}}:@foreach($value as $item)
                          <span>{{$item}}</span>
                    @endforeach</span>
                @else
                    <div style="width: 48%">
                        <span>{{$key}}:{{$value}}</span>
                    </div>
                @endif
            </div>
        @endforeach


    </div>

{{--    <div class="layui-form-item">--}}
{{--        <label class="layui-form-label">物流单号</label>--}}
{{--        <div class="layui-input-block">--}}
{{--            <input type="text"  name="wuliu_num"  placeholder="请输入 物流单号" autocomplete="off" class="layui-input" >--}}
{{--        </div>--}}
{{--    </div>--}}

    <div class="layui-form-item">
        <label class="layui-form-label">物流单号</label>
        <div class="layui-input-block">
            <input type="text"  name="wuliu_num"  placeholder="请输入 物流单号" autocomplete="off" class="layui-input" >
        </div>
    </div>


    <img src="{{route('admin.qr_code')}}?order_code={{$info['orders_code']}}" alt="" style="width: 200px;height: 200px">

    <input type="hidden" name="orders_id" value="{{$orders_id}}">
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="submit" id="submit" value="确认">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="取消">
    </div>

</div>
<script>
    layui.use(['laydate','form'], function() {
        let form = layui.form;
        form.on('submit(submit)', function(data){
            Api.add("{{route('admin.orders.send_orders')}}",data.field,function(res){
                if (res.code !== 200){
                    Utils.errorToast(res.msg);
                    return;
                }
            });
        });


    });
</script>
